﻿@using HROReporting.Infrastructure.Helpers;

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryui")
    <link href='/Content/themes/base/jquery-ui.css' rel="stylesheet"
        type="text/css" />
</head>
<body>
    <div id="global-container">
        <div id="header-container">
            <div id="header-content">
                <div id="header-image"></div>
                <div id="header-menu">
                    <ul>
                        <li>@Html.MenuLink("Home", "Index", "Home")</li>
                        <li>@Html.MenuLink("Over HRR", "Index", "Informatie")</li>
                        <li>@Html.MenuLink("Hogeschool Rotterdam", "Index", "Hogeschool")</li>
                        <li>@Html.MenuLink("Links", "Index", "Links")</li>
                        <li>@Html.MenuLink("Contact", "Index", "Contact")</li>
                        @if (Roles.IsUserInRole("Student"))
                        {
                            <li>@Html.MenuLink("Mijn Account", "Details", "Student")</li>
                            <li>@Html.MenuLink("Uitloggen", "SignOut", "AccountLogOn")</li>
                            
                        }
                        else if (Roles.IsUserInRole("Docent"))
                        {
                            <li>@Html.MenuLink("Mijn Account", "MyAccount", "Docent")</li>
                            <li>@Html.MenuLink("Uitloggen", "SignOut", "AccountLogOn")</li>
                        }
                        else
                        {
                            <li>@Html.MenuLink("Registreren", "Register", "StudentRegister")</li>
                            <li>@Html.MenuLink("Inloggen", "LogOn", "AccountLogOn")</li>
                        }
                    </ul>
                </div>
                @if (Request.IsAuthenticated)
                {
                    <div id="header-account">Welkom @HttpContext.Current.User.Identity.Name</div>
                }
            </div>
        </div>
        <div id="content-container">
            @RenderBody()

            @RenderSection("DialogScripts", required: false)
        </div>
    </div>
    <div id="footer-container">
        <div id="footer-content">
            <div id="left"><a href="http://hogeschoolrotterdam.nl"><img src="/Content/images/footer-left.png" /></a></div>
            <div id="right"><a href="http://hogeschoolrotterdam.nl"><img src="/Content/images/footer-right.png" /></a></div>
        </div>
    </div>
</body>
</html>
